﻿
using SHKF.B2C.Model.Entity;
using SHKF.B2C.Model.Entity.Center;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text; 

namespace SHKF.B2C.MeiTuanShanGou.Model.Entity.Medicine
{
    /// <summary>
    /// 美团闪购产品信息
    /// </summary>
    [SugarTable("ProductInfo")]
    public class ProductInfoMtsgEntity : BaseEntity
    {

        public int CompanySN { get; set; }

        public long ShopSN { get; set; }

        /// <summary>
        /// APP方药品id
        /// </summary>
        public string ID { get; set; }

        //药品上下架状态。字段取值范围：0-上架，1-下架。本参数如传是0,1或不传，则默认为下架状态
        public int is_sold_out { get; set; }

        public string CategoryCode { get; set; }
        public string CategoryName { get; set; }
        public long app_poi_code { get; set; }
        public long app_medicine_code { get; set; }

        //库存数
        public int Stock { get; set; }


        //-------base 

        public long ProductSN { get; set; }  //虚拟产品SN

        public string ProductName { get; set; }

        /// <summary>
        /// 药品UPC码，同一门店内药品UPC码不允许重复
        /// </summary>
        public string Upc { get; set; }

        /// <summary>
        /// 药品的批准文号
        /// </summary>
        public string LiceseId { get; set; }

        /// <summary>
        /// 药品规格
        /// </summary>
        public string Spec { get; set; }

        /// <summary>
        /// 药品售卖价格，单位是元；最多支持2位小数，不能为负数，最大支持30000.00
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 产地
        /// </summary>
        public string Made { get; set; }

        //药品上下架状态。字段取值范围：0-上架，1-下架。本参数如传的不是0,1或不传，则默认为下架状态
        //public int is_sold_out { get; set; }

        public string Unit { get; set; }

        /// <summary>
        /// 剂型
        /// </summary>
        public string Model { get; set; }

        /// <summary>
        /// 生产企业
        /// </summary>
        public string Manufacturer { get; set; }

        /// <summary>
        /// 有效期
        /// </summary>
        public int Validate { get; set; }

        /// <summary>
        /// 通用名
        /// </summary>
        public string CommonTitle { get; set; }

        /// <summary>
        /// 存储条件
        /// </summary>
        public string ConditionOfStorage { get; set; }
    }
}
